package com.xqx.consumer.client;

import com.xqx.consumer.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("user-service")
@RequestMapping("/user")
public interface UserClient {
    @GetMapping("/find/{id}")
    User queryById(@PathVariable("id") Long id);
}